package com.dl.tt.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dl.tt.bean.User;
import com.dl.tt.dao.UserMapper;
import com.dl.tt.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private UserMapper userMapper;
	@Override
	public boolean findUserByNameAndPwd(String name, String pwd) {

		User user = this.userMapper.findUserByNameAndPwd(name, pwd);
		
		if(user==null) {
			return false;
		}
		
		return true;
	}

}
